import { http } from "@/uni-sub-base/service/request.js"
let serviceName = "Member/"
let serviceName1 = "Authorize/"
import { getBaseUrls } from "@/utils/appUrl.js"
//获取会员列表
export function GetUserPageFromStore(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetUserPageFromStore",
        data,
    })
}
//获取会员等级
export function GetMemberGradeList(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetMemberGradeList",
        data,
    })
}
//获取商户所有印象标签
export function GetAllLabels(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetAllLabels",
        data,
    })
}
//获取会员详情
export function GetMemberDetailFromStore(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetMemberDetailFromStore",
        data,
    })
}
//回访跟进
export function GetReturnVisitRecordPage(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetReturnVisitRecordPage",
        data,
    })
}
//添加回访跟进
export function AddReturnVisitRecord(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "AddReturnVisitRecord",
        data,
    })
}
//设置标签
export function SetMemberLabel(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "SetMemberLabel",
        data,
    })
}
//获取门店评价记录
export function GetStorePage(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetStorePage",
        data,
    })
}
//会员营销列表
export function GetMemberTagsList(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetMemberTagsList",
        data,
    })
}
//会员标签列表
export function GetUserInfoListByTag(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetUserInfoListByTag",
        data,
    })
}
//来源
export function GetListNotPage(data) {
    return http.post({
        url: configs.baseUrl + "Dictionary/GetListNotPage",
        data,
    })
}
//门店端注册会员
export function RegisterUserFromStore(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "RegisterUserFromStore",
        data,
    })
}
//门店端修改会员
export function ModifyMemberFromStore(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "ModifyMemberFromStore",
        data,
    })
}
//获取验证码
export function SendSmsNoVerifyCode(path) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName1 + "SendSmsNoVerifyCode" + path,
    })
}
